home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / SpriteEngine / SE Programmed Sprite / SpriteHandlers.h < prev   
Text File  |  1995-03-11  |  648b  |  23 lines

  1. /* Application-dependent definitions */
  2.  
  3. /* Data structure describing a sprite*/
  4. /* Add new fields as necessary */
  5.  
  6. /**/
  7.  
  8. typedef struct SpriteRecord {
  9. /*Game entity data - edit as desired*/
  10.     Point            speed;                /*  */
  11.     short            timeOnCurrent;
  12.     short            currentInstruction;
  13. /*Sprite data - don't remove*/
  14.     Point            position;            /* Integer screen coordinates! */
  15.     GrafPtr            face;                /* Apprearance of the sprite */
  16.     Rect            drawingRect;        /* Where is it? */
  17. /*List pointers - don't remove*/
  18.     struct SpriteRecord    *prev, *next;        /* Next enity in the list */
  19. } SpriteRecord;
  20.  
  21. // Decomment this if fixedPointPosition is declared below!
  22. //#define    _hasfixedpoint
  23.